package com.freesky.web.manager.remote.search;


import com.freesky.common.utils.reponse.JSONResponse;
import com.freesky.web.manager.remote.search.fallback.SearchItemRemoteFallback;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "emall-provider-zuul", fallback = SearchItemRemoteFallback.class)
public interface SearchItemRemote {
    String ZUUL_URL_PREFIX = "/mysevice/search";
    String URL_PREFIX = "/search";

    @RequestMapping(value = ZUUL_URL_PREFIX + URL_PREFIX +"/importIndex", method = RequestMethod.GET)
    JSONResponse importIndex();

    @RequestMapping(value = ZUUL_URL_PREFIX + URL_PREFIX +"/getInfo", method = RequestMethod.GET)
    JSONResponse getInfo();
}
